package nml.mail.reg.await;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  sfs_com extends Reg{

	public void reg(String username, String password) {		
		

		String url = "sfs.com";
		get(url);
		
		dr.findElement(By.name("user_name")).sendKeys(username);
		dr.findElement(By.name("password")).sendKeys(password);
		dr.findElement(By.name("password2")).sendKeys(password);
		
		dr.findElement(By.name("selectQid")).sendKeys("我的座右铭是？");
		dr.findElement(By.name("pwdA")).sendKeys("我不知道");
	
		dr.findElement(By.name("door")).click();
		
		
		System.out.println(username+"@sina.cn");
	}

	public static void main(String[] args) {
		new sfs_com().reg("qq331798654", "qq3131798654");
	}
	
	
}
